import { Component, OnInit } from '@angular/core';
import { BladeService } from "../../../shared/blade.service";
import { BladeData } from "app/shared/blade/blade-data";
import { ModelParamListComponent } from "./model-param-list/model-param-list.component";
import { Observable } from "rxjs/Observable";

@Component({
  selector: 'app-model-param',
  templateUrl: './model-param.component.html',
  styleUrls: ['./model-param.component.css'],
  providers: [BladeService],
})
export class ModelParamComponent implements OnInit {

  constructor(public bladeService: BladeService) {

  }

  ngOnInit() {
    this.createFarmListtBlade()
  }
  /**
   * 创建风场列表弹出层
   * 
   * 
   * @memberof ModelParamComponent
   */
  createFarmListtBlade() {
    let data: BladeData = new BladeData();
    data.id = "modelParamList";
    data.title = "型号参数";
    data.isClosingDisabled = true;
    let farmListBlade = this.bladeService.createBlade(ModelParamListComponent, data);
    this.bladeService.showBlade(farmListBlade);
  }
  /**
  * 是否可以离开
  * 
  * 
  * @memberof ModelParamComponent
  */
  canDeactivate(): boolean | Observable<boolean> | Promise<boolean> {
    return true;
  }


}



// WEBPACK FOOTER //
// ./src/app/module/basic/model-param/model-param.component.ts